package com.example.springboot.demo.nacos.notify;

import com.alibaba.nacos.api.config.ConfigService;
import com.alibaba.nacos.api.exception.NacosException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author dengkaibing
 * @Date 2023/4/6 20:19
 * @Desc
 */
@Component
public class NacosNotify {

    @Autowired
    private ConfigService configService;

    public void getConfig() throws NacosException {
        configService.getConfig("","group",1000);
    }
}
